package clientGUI.userPanels.Controllers;
import college.RequestTreatment;
import clientserver.Client;
import clientserver.Packet;

public class TestPanelController
{
Client client;
int rid;
RequestTreatment r;
public TestPanelController(Client cl,int id)
{
	client = cl;
	rid =id;
}
	
	public void testPass() 
	{
		r = new RequestTreatment(client,rid);
		r.setcurrentstage(15);
		r.updatestageindb();
		
	}

	
	public void denyAndDescription(String s) 
	{
		r = new RequestTreatment(client,rid);
		r.setcurrentstage(10);
		r.updatestageindb();
		String q;
		q = "Update Request_details r Set r.details = '"+s+"' Where id = '"+rid+"'" ;
		Packet p=new Packet(q);
		 p.setUpdatePacket();
		 client.SendPacketNowait(p);
		
	}

}
